#ifndef INET_SERVICEHANDLER_H
#define INET_SERVICEHANDLER_H

#include "Handle.h"
#include "SocketStream.h"
#include "EventHandler.h"

class ServiceHandler : public EventHandler
{
 public:
  virtual void open() = 0;
  SocketStream & peer() { return ipc_stream;}
  void setHandle(Handle handle){ return ipc_stream.setHandle(handle);}
  virtual Handle getHandle() {return ipc_stream.getHandle();}
 
private:
   SocketStream ipc_stream;
};

#endif
